// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 引入ElementUI
import ElementUI from 'element-ui';
// 核心css文件
import 'element-ui/lib/theme-chalk/index.css';
// 导入axios
import axios from 'axios'


Vue.use(ElementUI)
    // 将axios设置为vue的prototype 只要是在vue实例中都可以直接使用发送请求
Vue.prototype.axios = axios;
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})